﻿<UserControl 
    x:Class="MvvmFx.Samples.HowTos.PropertyHandlers.Views.NumberChangeLogView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Views1="clr-namespace:MvvmFx.Samples.HowTos.PropertyHandlers.Views"
    >
    <!--<UserControl.DataContext>
        <ViewModels:NumberChangeLogViewModel Logged="OnLogged" />
    </UserControl.DataContext>-->

    <DockPanel>
        <Views1:NumberView 
            DockPanel.Dock="Top" 
            DataContext="{Binding Path=Number, Mode=OneTime}" 
            />

        <TextBlock 
            DockPanel.Dock="Top" 
            Background="Black"
            FontWeight="Bold" 
            Foreground="White"
            Padding="4"
            Text=" Change Log" 
            />

        <ScrollViewer 
            x:Name="_scrollViewer" 
            x:FieldModifier="private" 
            VerticalScrollBarVisibility="Auto"
            >
            <ItemsControl ItemsSource="{Binding Path=ChangeLog, Mode=OneTime}" />
        </ScrollViewer>
    </DockPanel>
</UserControl>